getApp();

var n = require("../../utils/data.js");

Page({
    data: {
        class_num: null,
        artype: null
    },
    onLoad: function(t) {
        console.log("传送过来");
        var a = this;
        this.setData({
            artype: t.artype
        });
        var o = wx.getStorageSync("person_uname");
        console.log(this.data.artype), wx.request({
            url: n.getInterfaceData() + "stumentioninfor.action",
            data: {
                cnum: this.data.artype,
                person_uname: o
            },
            header: {
                "content-type": "application/json"
            },
            success: function(n) {
                a.setData({
                    list: n.data
                }), console.log(n.data);
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});